<div class="zs-body" data-ng-init="formInit('${FormName}', {
        keyField:'${KeyFiled}',
        randomFields:['${KeyFiled}'],
        orderObject:${order}
    }) && loadData('${FormName}');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">地图配置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">${FormAliseName}</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('${FormName}') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('${FormName}', ${FormName}.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('${FormName}')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
<#if searchTabField?? >
            <div class="link item" data-ng-init="iniTab('${FormName}', 'all', 'selected');">
                <a ng-click="setTab('${FormName}', 'all') && setQueryObject('${FormName}','${searchTabField}','null') && loadData('${FormName}')" 
                    class="{{tabs['${FormName}'].tabClass['all']}}">全部</a>
<#list searchTabs as item>
                <a ng-click="setTab('${FormName}', '${item.value}') && setQueryObject('${FormName}','${searchTabField}','${item.value}') && loadData('${FormName}')" 
                    class="{{tabs['${FormName}'].tabClass['${item.value}']}}">${item.text}</a>
</#list>
            </div>
            <div class="tool item">
<#else>
			<div class="tool item" style="margin-left:6px;">
</#if>
<#list tableFields as item>
<#if item.dictionaryName?? >
				<span class="search-warpper">
                    <ag-Combobox class="zs-input" style="height:28px;" placeholder="${item.aliasName}"
                        para="{uDictionary:true,dictionary:'${item.dictionaryName}',addSpace:true,superNullItem:false}"
                        ng-model="${FormName}.queryObject['${item.name?uncap_first}']" />
                </span>
<#else>
		<#if item.dataType?? >
			<#if item.dataType == "DATE">
				<span class="search-warpper">
                    <ag-Datebox id='qi_${item.name?uncap_first}' editable='false' showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="${FormName}.queryObject['${item.name?uncap_first}']" >
				   	</ag-Datebox>
                </span>
			<#elseif item.dataType == "DATETIME">
				<span class="search-warpper">
                    <ag-Datebox id='qi_${item.name?uncap_first}' editable='false' showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="${FormName}.queryObject['${item.name?uncap_first}']" >
				   	</ag-Datebox>
                </span>
            <#else>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="${item.aliasName}" ng-model="${FormName}.queryObject['${item.name?uncap_first}']"/>
                </span>
			</#if> 
		<#else>
				<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="${item.aliasName}" ng-model="${FormName}.queryObject['${item.name?uncap_first}']"/>
                </span>
		</#if>
</#if>
</#list> 
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('${FormName}')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('${FormName}','allCheckbox');" />
                                    </th>
									<#list tableFields as item>
									<th>${item.aliasName}</th>
									</#list>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in ${FormName}.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('${FormName}',r);"
                                            ng-model="r.selected" />
                                    </td>
								<#list tableFields as item>
									<!--  ${item.aliasName} -->
									<#if item.dictionaryName?? >
									
								   <td>
                                        <a ng-click="editRow('${FormName}',r) && openWindow('edit');">
                                            <label ng-bind="r.${item.name?uncap_first}Name"></label>
                                        </a>
                                   </td>
							<#else>
								<#if item.dataType?? >
									<#if item.dataType == "DATE">
								   <td>
                                        <a ng-click="editRow('${FormName}',r) && openWindow('edit');">
                                            <label ng-bind="r.${item.name?uncap_first} | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
			<#elseif item.dataType == "DATETIME">
								   <td>
                                        <a ng-click="editRow('${FormName}',r) && openWindow('edit');">
                                            <label ng-bind="r.${item.name?uncap_first} | asDate | date:'yyyy-MM-dd HH时'"></label>
                                        </a>
                                   </td>
            <#elseif item.dataType == "BOOLEAN">
								   <td>
                                        <a ng-click="editRow('${FormName}',r) && openWindow('edit');">
                                            <label ng-bind="r.${item.name?uncap_first} | asChineseBool "></label>
                                        </a>
                                    </td>
            <#else>
            						<td>
                                        <a ng-click="editRow('${FormName}',r) && openWindow('edit');">
                                            <label ng-bind="r.${item.name?uncap_first}"></label>
                                        </a>
                                   </td>
			</#if> 
		<#else>
								   <td>
                                        <a ng-click="editRow('${FormName}',r) && openWindow('edit');">
                                            <label ng-bind="r.${item.name?uncap_first}"></label>
                                        </a>
                                   </td>
		</#if>   
	</#if>
</#list> 
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='${FormName}'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="${FormAliseName}编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
<#list tableFields as item>
	<#if item.dictionaryName?? >
						   <tr>
                                <td class="text" width="20%">${item.aliasName}</td>
                                <td class="left" width="30%">
                                    <ag-Combobox class="zs-input" style="width:175px;height:28px;"
                                        para="{uDictionary:true,dictionary:'${item.dictionaryName}'}"
                                        ng-model="${FormName}.editRow.${item.name?uncap_first}"
                                        text-Value="${FormName}.editRow.${item.name?uncap_first}Name" />
                                </td>
                            </tr>		
	<#else>
		<#if item.dataType?? >
			<#if item.dataType == "DATE">
						   <tr>
                                <td class="text" width="20%">${item.aliasName}</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_${item.name?uncap_first}' editable='false' showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="${FormName}.editRow.${item.name?uncap_first}" >
							   		</ag-Datebox>
                                </td>
                            </tr>
			<#elseif item.dataType == "DATETIME">
						   <tr>
                                <td class="text" width="20%">${item.aliasName}</td>
                                <td class="left" width="30%">
	                                <ag-Datebox id='fi_${item.name?uncap_first}' editable='false' showcurday='true'
			                        		class="zs-input" style="width:175px;height: 28px"
			                        		ng-model="${FormName}.editRow.${item.name?uncap_first}" >
								   	</ag-Datebox>
                                </td>
                            </tr>
		    <#elseif item.dataType == "BOOLEAN">
						   <tr>
                                <td class="text" width="20%">${item.aliasName}</td>
                                <td class="left" width="30%">
							   		<input type="checkbox" ng-model="${FormName}.editRow.${item.name?uncap_first}" 
                        				ng-true-value="true" ng-false-value="false" value='false' />
                                </td>
                            </tr>
            <#else>
          					<tr>
                                <td class="text" width="20%">${item.aliasName}</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="${FormName}.editRow.${item.name?uncap_first}" class="zs-input" />
                                </td>
                            </tr>
			</#if> 
		<#else>
						   <tr>
                                <td class="text" width="20%">${item.aliasName}</td>
                                <td class="left" width="30%">
                               		<input type="text" ng-model="${FormName}.editRow.${item.name?uncap_first}" class="zs-input" />
                                </td>
                            </tr>
		</#if>
	</#if>
</#list> 
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('${FormName}', ${FormName}.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>